﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Hook.Graphics;
using Hook.Graphics.SpriteSheets;

namespace Hook.Environmental.Props.Enemies
{
    class SnapTrap : Enemy
    {
        public SnapTrap()
            : base()
        {
            Name = "SnapTrap.txt";
            Sprite = new Sprite(Game1.PropSheet, PropSheet.PLAYER);
            Sprite.FrameRate = 2;

            List<Vector3> VO = new List<Vector3>();

            // Rectangular hitbox
            VO.Add(new Vector3(20, 30, 0));
            VO.Add(new Vector3(-20, 30, 0));
            VO.Add(new Vector3(-20, -30, 0));
            VO.Add(new Vector3(20, -30, 0));

            Frame.SetPoints(VO);

            //Rotation = new Vector3(0, 0, 0);
            Mass = float.PositiveInfinity;
            //Inertia = 2000;
            Inertia = float.PositiveInfinity;
            CollisionLayer.Add(0);
            GravityOn = false;
        }
    }
}
